package com.daiki.onlinerecruitment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author daiki
 * @since 2021-10-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    private String userLoginname;

    private String userPassword;

    private String userName;

    private String userEmail;

    private String userTel;

    /**
     * 用户状态（0：冻结，1：有效）
     */
    private Integer userStatus;

    /**
     * 用户角色（1：管理员，2：招聘者，3：求职者）
     */
    private Integer userRole;


}
